<fieldset>
<table>
  <tr>
    <td width="300"/>
	<td />
  </tr>
  
<% for category in @categories %>
  <tr>
  <% for column in Category.content_columns %>
    <td><%=h category.send(column.name) %></td>
  <% end %>
	<td><%= link_to 'Mostrar', :action => 'show', :id => category %> |
	<%= link_to 'Editar', :action => 'edit', :id => category %> |
    <%= link_to 'Excluir', { :action => 'destroy', :id => category }, :confirm => 'Deseja mesmo deletar?', :method => :post %></td>
  </tr>
<% end %>
</table>

<%= link_to 'Anterior', { :page => @category_pages.current.previous } if @category_pages.current.previous %>
<%= link_to 'Pr&oacute;xima', { :page => @category_pages.current.next } if @category_pages.current.next %> 
</fieldset>

<p>
<%= link_to 'Adicionar categoria', :action => 'new' %>
</p>

<p>
  <h2>Op&ccedil;&otilde;es relacionadas:</h2>
  &bull; <%= link_to 'Gerenciar revistas', :controller => 'magazines', :action => 'list'%><br/>
  &bull; <%= link_to 'Gerenciar edi&ccedil;&otilde;es de revistas', :controller => 'editions', :action => 'list'%>
</p>
